home *** CD-ROM | disk | FTP | other *** search
- ##########################################################################
- ## AUTORUN.TG
- # This autorun script is run automatically when WinCron is started as a
- # service (but after Config.tg).
- # This is because it is difficult to pass parameters to a service.
- # if you wish WinCron to run this script when WinCron is *not* installed
- # as a service, you will need to pass this script to WinCron on the
- # command line or load it through the User Interface.
- # Auto loading scripts load in the following order:
- # Config.tg, (AutoRun.tg), (setup.tg), user.tg
- # Config.tg: This file unconditionally starts on WinCron boot
- # AutoRun.tg: This script will start IF WinCron is started as a service
- # setup.tg: This script (if it exists) will run to finish WinCron installation
- # user.tg: This is the user script and never over written by WinCron setup
- {
- -name AUTORUN.TG
- -start
- -stop
-
- ###
- # Load old style .TAB file for backwards compatibility.
- -action -load "%TG.ROOT_DIR%autorun.tab"
-
- ###
- # run a subroutine with the same name as that of the current account.
- # this allows us to run differently depending on how we were loaded/run
- -action -call "%TG.ACCOUNT%"
-
- ###
- # done!
- -action -print AutoRun.tg: Complete.
- }
-
- # when run as a system service in my account (PROXY)
- # OR when run as application
- {
- # the subroutine will have *your* account name by setting the
- # environment variable ACCOUNT_NAME in Config.tg.
- -name %ACCOUNT_NAME%
-
- ###
- # TODO: add your initialization code here
-
- ###
- # done!
- -action -print Running as %TG.ACCOUNT%
- }
-
- # when run as a system service in LocalSystem account, the account name is
- # "SYSTEM"
- {
- -name SYSTEM
-
- ###
- # TODO: add your initialization code here
-
- ###
- # done!
- -action -print Running as %TG.ACCOUNT%
- }
-